#ifndef __GRID_LAYOUT_H__
#define __GRID_LAYOUT_H__

#include "gofgame/common/ui/Layout.h"
#include "gofgame/common/cxx_0x.h"

namespace gofgame {
	namespace common {
		namespace ui {
			class GridLayout : public Layout {
			public:
				GridLayout();
				virtual const CCSize &getCellSize() const;
				virtual void setCellSize(const CCSize &cellSize);
				virtual float getCellSpacing() const;
				virtual void setCellSpacing(float cellSpacing);
				virtual float getCellPadding() const;
				virtual void setCellPadding(float cellPadding);

			protected:
				virtual void onLayout() _override;
				
			private:
				CCSize cellSize;
				float cellSpacing;
				float cellPadding;
			};
		}
	}
}

#endif //__GRID_LAYOUT_H__
